##############################################################
## MOD Title: GaduGadu & Tlen & Skype MOD
## MOD Author: crazygandalf < gandalfszalony@o2.pl > (Bartłomiej Zielonka) http://kkr.nsc.pl
## MOD Description: Modyfikacja dodaje obsługę trzech nowych komunikatorów GaduGadu, Tlen i Skype. Obsługa pozostałych komunikatorów nie jest nadpisywana. Umożliwia wyłączeniu dowolnych komunikatorów w PA. 
## MOD Version: 1.1.1a
##
## Installation Level: Easy
## Installation Time: 30 Minutes
## Files To Edit: memberlist.php
##                viewtopic.php
##                adm/style/acp_users_profile.html
##                includes/acp/acp_language.php
##                includes/acp/acp_styles.php
##                includes/acp/acp_users.php
##                includes/ucp/ucp_pm_viewmessage.php
##                includes/ucp/ucp_profile.php
##                language/pl/acp/common.php
##                styles/prosilver/imageset/imageset.cfg
##                styles/prosilver/template/memberlist_im.html
##                styles/prosilver/template/memberlist_search.html
##                styles/prosilver/template/memberlist_view.html
##                styles/prosilver/template/ucp_pm_viewmessage.html
##                styles/prosilver/template/ucp_profile_profile_info.html
##                styles/prosilver/template/viewtopic_body.html
##                styles/prosilver/theme/stylesheet.css
##
## Included Files: root/adm/style/acp_im.html 
##                 root/includes/acp/info/acp_im.php 
##                 root/includes/acp/acp_im.php
##                 root/language/pl/mods/im.php
##                 root/styles/prosilver/imageset/icon_contact_gg.gif
##                 root/styles/prosilver/imageset/icon_contact_icq.gif
##                 root/styles/prosilver/imageset/icon_contact_skype.gif
##                 root/styles/prosilver/imageset/icon_contact_tlen.gif
##                 root/styles/prosilver/theme/im.css								
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes: Modyfikacja wprowadza następujące możliwości:
## - obsługa nowych komunikatorów - Gadu-Gadu, Tlen, Skype
## - obsługa pozostałych komunikatorów nie jest nadpisywana
## - statusy w widoku tematów, prywatnych wiadomości i w profilu użytkownika (gg, tlen, skype)
## - Gadu-Gadu - otwieranie okienka rozmowy
## - Tlen - wysyłanie wiadomości przez bramkę Tlen, automatyczne usuwanie końcówek wpisanych przez użytkownika @tlen.pl, @o2.pl, @go2.pl
## - Skype - możliwość dzwonienia, otwieranie okienka rozmowy, dodanie do kontaktów, ściągnięcie aplikacji
## - drobne poprawki w widoku prywatnych wiadomości (jakieś niedorobione te pozostałe komunikatory tam są :-))
## - poprawki w statusie ICQ, który nie był wyświetlany
## - nowe komunikatory dodane do wyszukiwarki użytkowników
## - możliwość wyłączenia obsługi dowolnych komunikatorów w panelu administracyjnym
##
##############################################################
## MOD History:
##
##   2008-09-26 - Version 1.1.1a
##      - dodano instrukcje dla stylu subsilver2
##
##   2008-07-29 - Version 1.1.1
##      - poprawiony błąd powodujący wyświetlanie pustej strony w przypadku braku tematu
##
##   2008-01-23 - Version 1.1.0
##      - możliwość wyłączenia obsługi dowolnych komunikatorów w PA
##			- poprawiony błąd z ograniczeniem długości loginów w skype i tlen
##
##   2008-01-19 - Version 1.0.1
##      - zmienne językowe przeniesione do jednego pliku
##			- zmienne motywu (theme) przeniesione do jednego pliku
##
##   2008-01-17 - Version 1.0.0
##      - pierwsze wydanie
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ SQL ]------------------------------------------
#
ALTER TABLE phpbb_users ADD user_gg varchar(15) DEFAULT '' NOT NULL;
ALTER TABLE phpbb_users ADD user_tlen varchar(255) DEFAULT '' NOT NULL;  
ALTER TABLE phpbb_users ADD user_skype varchar(255) DEFAULT '' NOT NULL;
INSERT INTO phpbb_config (config_name, config_value) VALUES ('enable_gg', '1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('enable_tlen', '1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('enable_skype', '1');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('enable_msn', '0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('enable_icq', '0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('enable_yim', '0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('enable_aim', '0');
INSERT INTO phpbb_config (config_name, config_value) VALUES ('enable_jabber', '0');

#
#-----[ COPY ]------------------------------------------
#
copy adm/style/acp_im.html to adm/style/acp_im.html  
copy includes/acp/info/acp_im.php to includes/acp/info/acp_im.php
copy includes/acp/acp_im.php to includes/acp/acp_im.php
copy language/pl/mods/im.php to language/pl/mods/im.php
copy styles/prosilver/imageset/*.gif to styles/prosilver/imageset/*.gif
copy styles/prosilver/theme/im.css to styles/prosilver/theme/im.css

#
#-----[ OPEN ]------------------------------------------
#
memberlist.php

#
#-----[ FIND ]------------------------------------------
#
$user->setup(array('memberlist', 'groups'));

#
#-----[ AFTER, ADD ]------------------------------------------
#
$user->add_lang('mods/im');

#
#-----[ FIND ]------------------------------------------
#
			default:
				trigger_error('NO_MODE', E_USER_ERROR);

#
#-----[ BEFORE, ADD ]------------------------------------------
#
			case 'skype':
				$lang = 'SKYPE';
				$sql_field = 'user_skype';
				$s_select = 'S_SEND_SKYPE';
				$s_action = '';
			break;
	
#
#-----[ FIND ]------------------------------------------
#
			'U_AIM_MESSAGE'	=> ($action == 'aim') ? 'aim:goim?screenname=' . urlencode($row[$sql_field]) . '&amp;message=' . urlencode($config['sitename']) : '',

#
#-----[ AFTER, ADD ]------------------------------------------
#
			'U_SKYPE_CALL'	=> ($action == 'skype') ? 'skype:' . urlencode($row[$sql_field]) . '?call' : '',
			'U_SKYPE_CONTACT'	=> ($action == 'skype') ? 'skype:' . urlencode($row[$sql_field]) . '?add' : '',
			'U_SKYPE_MESSAGE'	=> ($action == 'skype') ? 'skype:' . urlencode($row[$sql_field]) . '?chat' : '',

#
#-----[ FIND ]------------------------------------------
#
			'YIM_IMG'		=> $user->img('icon_contact_yahoo', $user->lang['YIM']),

#
#-----[ AFTER, ADD ]------------------------------------------
#
			'GG_IMG'		=> $user->img('icon_contact_gg', $user->lang['GG']),
			'TLEN_IMG'		=> $user->img('icon_contact_tlen', $user->lang['TLEN']),
			'SKYPE_IMG'		=> $user->img('icon_contact_skype', $user->lang['SKYPE']),

#
#-----[ FIND ]------------------------------------------
#
		$sort_key_text = array('a' => $user->lang['SORT_USERNAME'],  

#
#-----[ REPLACE WITH ]------------------------------------------
#
		$sort_key_text = array('a' => $user->lang['SORT_USERNAME'], 'b' => $user->lang['SORT_LOCATION'], 'c' => $user->lang['SORT_JOINED'], 'd' => $user->lang['SORT_POST_COUNT'], 'e' => $user->lang['SORT_EMAIL'], 'f' => $user->lang['WEBSITE']);
		($config['enable_icq']) ? $sort_key_text['g'] = $user->lang['ICQ'] :'';
		($config['enable_aim']) ? $sort_key_text['h'] = $user->lang['AIM'] :'';
		($config['enable_msn']) ? $sort_key_text['i'] = $user->lang['MSNM'] :'';
		($config['enable_yim']) ? $sort_key_text['j'] = $user->lang['YIM'] :'';
		($config['enable_jabber']) ? $sort_key_text['k'] = $user->lang['JABBER'] :'';
		($config['enable_gg']) ? $sort_key_text['x'] = $user->lang['GG'] :'';
		($config['enable_tlen']) ? $sort_key_text['y'] = $user->lang['TLEN'] :'';
		($config['enable_skype']) ? $sort_key_text['z'] = $user->lang['SKYPE'] :'';

#
#-----[ FIND ]------------------------------------------
#
		$sort_key_sql = array('a' => 'u.username_clean',  

#
#-----[ IN-LINE FIND ]------------------------------------------
#
'u.user_jabber'

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, 'x' => 'u.user_gg', 'y' => 'u.user_tlen', 'z' => 'u.user_skype'

#
#-----[ FIND ]------------------------------------------
#
			$msn		= request_var('msn', '');

#
#-----[ AFTER, ADD ]------------------------------------------
#
			$gg		= request_var('gg', '');
			$tlen		= request_var('tlen', '');
			$skype		= request_var('skype', '');

#
#-----[ FIND ]------------------------------------------
#
			$sql_where .= ($msn) ? ' AND u.user_msnm ' . $db->sql_like_expression(str_replace('*', $db->any_char, $msn)) . ' ' : '';

#
#-----[ AFTER, ADD ]------------------------------------------
#
			$sql_where .= ($gg) ? ' AND u.user_gg ' . $db->sql_like_expression(str_replace('*', $db->any_char, $gg)) . ' ' : '';
			$sql_where .= ($tlen) ? ' AND u.user_tlen ' . $db->sql_like_expression(str_replace('*', $db->any_char, $tlen)) . ' ' : '';
			$sql_where .= ($skype) ? ' AND u.user_skype ' . $db->sql_like_expression(str_replace('*', $db->any_char, $skype)) . ' ' : '';

#
#-----[ FIND ]------------------------------------------
#
			'msn'			=> array('msn', ''),

#
#-----[ AFTER, ADD ]------------------------------------------
#
			'gg'			=> array('gg', ''),
			'tlen'			=> array('tlen', ''),
			'skype'			=> array('skype', ''),

#
#-----[ FIND ]------------------------------------------
#
				'JABBER'	=> $jabber,
				
#
#-----[ AFTER, ADD ]------------------------------------------
#
				'GG'		=> $gg,
				'TLEN'		=> $tlen,
				'SKYPE'		=> $skype,
				'ENABLE_ICQ'		=> $config['enable_icq'],
				'ENABLE_AIM'		=> $config['enable_aim'],
				'ENABLE_YIM'		=> $config['enable_yim'],
				'ENABLE_MSN'		=> $config['enable_msn'],
				'ENABLE_GG'		=> $config['enable_gg'],
				'ENABLE_TLEN'		=> $config['enable_tlen'],
				'ENABLE_SKYPE'		=> $config['enable_skype'],			

#
#-----[ FIND ]------------------------------------------
#
			'YIM_IMG'		=> $user->img('icon_contact_yahoo', $user->lang['YIM']),
			
#
#-----[ AFTER, ADD ]------------------------------------------
#
			'GG_IMG'		=> $user->img('icon_contact_gg', $user->lang['GG']),
			'TLEN_IMG'		=> $user->img('icon_contact_tlen', $user->lang['TLEN']),
			'SKYPE_IMG'		=> $user->img('icon_contact_skype', $user->lang['SKYPE']),

#
#-----[ FIND ]------------------------------------------
#
			'U_SORT_YIM'			=> $sort_url . '&amp;sk=j&amp;sd=' . (($sort_key == 'j' && $sort_dir == 'a') ? 'd' : 'a'),
			
#
#-----[ AFTER, ADD ]------------------------------------------
#
			'U_SORT_GG'			=> $sort_url . '&amp;sk=x&amp;sd=' . (($sort_key == 'x' && $sort_dir == 'a') ? 'd' : 'a'),
			'U_SORT_TLEN'			=> $sort_url . '&amp;sk=y&amp;sd=' . (($sort_key == 'y' && $sort_dir == 'a') ? 'd' : 'a'),
			'U_SORT_SKYPE'			=> $sort_url . '&amp;sk=z&amp;sd=' . (($sort_key == 'z' && $sort_dir == 'a') ? 'd' : 'a'),

#
#-----[ FIND ]------------------------------------------
#
		'ICQ_STATUS_IMG'	=> (!empty($data['user_icq'])) ? '<img src="http://web.icq.com/whitepages/online?icq=' . $data['user_icq'] . '&amp;img=5" width="18" height="18" />' : '',
		
#
#-----[ AFTER, ADD ]------------------------------------------
#
		'GG_STATUS_IMG'	=> (!empty($data['user_gg'])) ? '<img src="http://www.gadu-gadu.pl/users/status.asp?id=' . $data['user_gg'] . '&styl=1" width="14" height="14" />' : '',
		'TLEN_STATUS_IMG'	=> (!empty($data['user_tlen'])) ? '<img src="http://status.tlen.pl/?u=' . $data['user_tlen'] . '&amp;t=1" border="0" width="18" height="18" />' : '',
		'SKYPE_STATUS_IMG'	=> (!empty($data['user_skype'])) ? '<img src="http://mystatus.skype.com/smallicon/' . $data['user_skype'] . '" width="16" height="16" />' : '',

#
#-----[ FIND ]------------------------------------------
#
		'U_ICQ'			=> ($data['user_icq']) ? 'http://www.icq.com/people/webmsg.php?to=' . urlencode($data['user_icq']) : '',
		'U_AIM'			=> ($data['user_aim'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=aim&amp;u=' . $user_id) : '',
		'U_YIM'			=> ($data['user_yim']) ? 'http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($data['user_yim']) . '&amp;.src=pg' : '',
		'U_MSN'			=> ($data['user_msnm'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=msnm&amp;u=' . $user_id) : '',
		'U_JABBER'		=> ($data['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=jabber&amp;u=' . $user_id) : '',
		'LOCATION'		=> ($data['user_from']) ? $data['user_from'] : '',

		'USER_ICQ'			=> $data['user_icq'],
		'USER_AIM'			=> $data['user_aim'],
		'USER_YIM'			=> $data['user_yim'],
		'USER_MSN'			=> $data['user_msnm'],
		'USER_JABBER'		=> $data['user_jabber'],
		'USER_JABBER_IMG'	=> ($data['user_jabber']) ? $user->img('icon_contact_jabber', $data['user_jabber']) : '',

		
#
#-----[ REPLACE WITH ]------------------------------------------
#
		'U_ICQ'			=> ($data['user_icq'] && $config['enable_icq']) ? 'http://www.icq.com/people/webmsg.php?to=' . urlencode($data['user_icq']) : '',
		'U_AIM'			=> ($data['user_aim'] && $auth->acl_get('u_sendim') && $config['enable_aim']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=aim&amp;u=' . $user_id) : '',
		'U_YIM'			=> ($data['user_yim'] && $config['enable_yim']) ? 'http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($data['user_yim']) . '&amp;.src=pg' : '',
		'U_MSN'			=> ($data['user_msnm'] && $auth->acl_get('u_sendim') && $config['enable_msn']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=msnm&amp;u=' . $user_id) : '',
		'U_GG'			=> ($data['user_gg'] && $config['enable_gg']) ? 'gg:' . $data['user_gg'] : '',
		'U_TLEN'			=> ($data['user_tlen'] && $config['enable_tlen']) ? 'http://ludzie.tlen.pl/' . urlencode($data['user_tlen']) : '',
		'U_SKYPE'			=> ($data['user_skype'] && $auth->acl_get('u_sendim') && $config['enable_skype']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=skype&amp;u=' . $user_id) : '',
		'U_JABBER'		=> ($data['user_jabber'] && $auth->acl_get('u_sendim') && $config['enable_jabber']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=jabber&amp;u=' . $user_id) : '',
		'LOCATION'		=> ($data['user_from']) ? $data['user_from'] : '',

		'USER_ICQ'			=> ($config['enable_icq']) ? $data['user_icq'] : '',
		'USER_AIM'			=> ($config['enable_aim']) ? $data['user_aim'] : '',
		'USER_YIM'			=> ($config['enable_yim']) ? $data['user_yim'] : '',
		'USER_MSN'			=> ($config['enable_msn']) ? $data['user_msnm'] : '',
		'USER_GG'			=> ($config['enable_gg']) ? $data['user_gg'] : '',
		'USER_TLEN'			=> ($config['enable_tlen']) ? $data['user_tlen'] : '',
		'USER_SKYPE'			=> ($config['enable_skype']) ? $data['user_skype'] : '',
		'USER_JABBER'		=> ($config['enable_jabber']) ? $data['user_jabber'] : '',
		'USER_JABBER_IMG'	=> ($data['user_jabber'] && $config['enable_jabber']) ? $user->img('icon_contact_jabber', $data['user_jabber']) : '',

#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
$user->setup('viewtopic', $topic_data['forum_style']);

#
#-----[ AFTER, ADD ]------------------------------------------
#
$user->add_lang('mods/im');

#
#-----[ FIND ]------------------------------------------
#
	'YIM_IMG' 			=> $user->img('icon_contact_yahoo', 'YIM'),

#
#-----[ AFTER, ADD ]------------------------------------------
#
	'GG_IMG' 			=> $user->img('icon_contact_gg', 'GG'),
	'TLEN_IMG' 			=> $user->img('icon_contact_tlen', 'TLEN'),
	'SKYPE_IMG' 			=> $user->img('icon_contact_skype', 'SKYPE'),

#
#-----[ FIND ]------------------------------------------
#
				'yim'				=> '',

#
#-----[ AFTER, ADD ]------------------------------------------
#
				'gg_status_img'	=> '',
				'gg'				=> '',
				'tlen_status_img'	=> '',
				'tlen'				=> '',
				'skype_status_img'	=> '',
				'skype'				=> '',

#
#-----[ FIND ]------------------------------------------
#
				'yim'			=> ($row['user_yim']) ? 'http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($row['user_yim']) . '&amp;.src=pg' : '',
				
#
#-----[ AFTER, ADD ]------------------------------------------
#
				'skype'			=> ($row['user_skype'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=contact&amp;action=skype&amp;u=$poster_id") : '',
				'skype_status_img'			=> ($row['user_skype']) ? '<img src="http://mystatus.skype.com/smallicon/' . $row['user_skype'] . '" width="16" height="16" alt="" style="position: relative; left: 2px; top: 2px;"/>' : '',

#
#-----[ FIND ]------------------------------------------
#
				$user_cache[$poster_id]['icq_status_img'] = '<img src="http://web.icq.com/whitepages/online?icq=' . $row['user_icq'] . '&amp;img=5" width="18" height="18" alt="" />';
				
#
#-----[ REPLACE WITH ]------------------------------------------
#
				$user_cache[$poster_id]['icq_status_img'] = '<img src="http://web.icq.com/whitepages/online?icq=' . $row['user_icq'] . '&amp;img=5" width="18" height="18" alt="" style="position: relative; left: 1px; top: 1px;" />';

#
#-----[ FIND ]------------------------------------------
#
				$user_cache[$poster_id]['icq'] = '';
			}
			
#
#-----[ AFTER, ADD ]------------------------------------------
#
			if (!empty($row['user_gg']))
			{
				$user_cache[$poster_id]['gg'] = 'gg:' . $row['user_gg'];
				$user_cache[$poster_id]['gg_status_img'] = '<img src="http://www.gadu-gadu.pl/users/status.asp?id=' . $row['user_gg'] . '&styl=1" width="14" height="14" alt="" style="position: relative; left: 3px; top: 3px;"/>';
			}
			else
			{
				$user_cache[$poster_id]['gg_status_img'] = '';
				$user_cache[$poster_id]['gg'] = '';
			}

			if (!empty($row['user_tlen']))
			{
				$user_cache[$poster_id]['tlen'] = 'http://ludzie.tlen.pl/' . $row['user_tlen'];
				$user_cache[$poster_id]['tlen_status_img'] = '<img src="http://status.tlen.pl/?u=' . $row['user_tlen'] . '&amp;t=1" border="0" width="18" height="18" alt="" style="position: relative; left: 1px; top: 1px;"/>';
			}
			else
			{
				$user_cache[$poster_id]['tlen_status_img'] = '';
				$user_cache[$poster_id]['tlen'] = '';
			}

#
#-----[ FIND ]------------------------------------------
#
		'ICQ_STATUS_IMG'		=> $user_cache[$poster_id]['icq_status_img'],
		
#
#-----[ AFTER, ADD ]------------------------------------------
#
		'GG_STATUS_IMG'		=> $user_cache[$poster_id]['gg_status_img'],
		'TLEN_STATUS_IMG'		=> $user_cache[$poster_id]['tlen_status_img'],
		'SKYPE_STATUS_IMG'		=> $user_cache[$poster_id]['skype_status_img'],

#
#-----[ FIND ]------------------------------------------
#
		'U_ICQ'			=> $user_cache[$poster_id]['icq'],
		'U_AIM'			=> $user_cache[$poster_id]['aim'],
		'U_MSN'			=> $user_cache[$poster_id]['msn'],
		'U_YIM'			=> $user_cache[$poster_id]['yim'],
		'U_JABBER'		=> $user_cache[$poster_id]['jabber'],
		
#
#-----[ REPLACE WITH ]------------------------------------------
#
		'U_ICQ'			=> ($config['enable_icq']) ? $user_cache[$poster_id]['icq'] : '',
		'U_AIM'			=> ($config['enable_aim']) ? $user_cache[$poster_id]['aim'] : '',
		'U_MSN'			=> ($config['enable_msn']) ? $user_cache[$poster_id]['msn'] : '',
		'U_YIM'			=> ($config['enable_yim']) ? $user_cache[$poster_id]['yim'] : '',
		'U_GG'			=> ($config['enable_gg']) ? $user_cache[$poster_id]['gg'] : '',
		'U_TLEN'			=> ($config['enable_tlen']) ? $user_cache[$poster_id]['tlen'] : '',
		'U_SKYPE'			=> ($config['enable_skype']) ? $user_cache[$poster_id]['skype'] : '',
		'U_JABBER'		=> ($config['enable_jabber']) ? $user_cache[$poster_id]['jabber'] : '',

#
#-----[ OPEN ]------------------------------------------
#
adm/style/acp_users_profile.html

#
#-----[ FIND ]------------------------------------------
#
	<dl>
		<dt><label for="icq">{L_UCP_ICQ}:</label></dt>
		<dd><input type="text" id="icq" name="icq" value="{ICQ}" /></dd>
	</dl>
	<dl>
		<dt><label for="aim">{L_UCP_AIM}:</label></dt>
		<dd><input type="text" id="aim" name="aim" value="{AIM}" /></dd>
	</dl>
	<dl>
		<dt><label for="msn">{L_UCP_MSNM}:</label></dt>
		<dd><input type="text" id="msn" name="msn" value="{MSN}" /></dd>
	</dl>
	<dl>
		<dt><label for="yim">{L_UCP_YIM}:</label></dt>
		<dd><input type="text" id="yim" name="yim" value="{YIM}" /></dd>
	</dl>
	<dl>
		<dt><label for="jabber">{L_UCP_JABBER}:</label></dt>
		<dd><input type="text" id="jabber" name="jabber" value="{JABBER}" /></dd>
	</dl>	

#
#-----[ REPLACE WITH ]------------------------------------------
#
	<!-- IF ENABLE_GG -->
	<dl>
		<dt><label for="gg">{L_UCP_GG}:</label></dt>
		<dd><input type="text" id="gg" name="gg" value="{GG}" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_TLEN -->  
	<dl>
		<dt><label for="tlen">{L_UCP_TLEN}:</label></dt>
		<dd><input type="text" id="tlen" name="tlen" value="{TLEN}" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_SKYPE -->  
	<dl>
		<dt><label for="skype">{L_UCP_SKYPE}:</label></dt>
		<dd><input type="text" id="skype" name="skype" value="{SKYPE}" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_ICQ -->
	<dl>
		<dt><label for="icq">{L_UCP_ICQ}:</label></dt>
		<dd><input type="text" id="icq" name="icq" value="{ICQ}" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_AIM -->  
	<dl>
		<dt><label for="aim">{L_UCP_AIM}:</label></dt>
		<dd><input type="text" id="aim" name="aim" value="{AIM}" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_MSN -->  
	<dl>
		<dt><label for="msn">{L_UCP_MSNM}:</label></dt>
		<dd><input type="text" id="msn" name="msn" value="{MSN}" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_YIM -->  
	<dl>
		<dt><label for="yim">{L_UCP_YIM}:</label></dt>
		<dd><input type="text" id="yim" name="yim" value="{YIM}" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_JABBER -->  
	<dl>
		<dt><label for="jabber">{L_UCP_JABBER}:</label></dt>
		<dd><input type="text" id="jabber" name="jabber" value="{JABBER}" /></dd>
	</dl>
	<!-- ENDIF -->
	
#
#-----[ OPEN ]------------------------------------------
#
includes/acp/acp_language.php

#
#-----[ FIND ]------------------------------------------
#
					'icon_back_top', 'icon_contact_aim', 'icon_contact_email', 'icon_contact_icq'

#
#-----[ IN-LINE FIND ]------------------------------------------
#
'icon_contact_icq'

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, 'icon_contact_gg', 'icon_contact_tlen', 'icon_contact_skype'

#
#-----[ OPEN ]------------------------------------------
#
includes/acp/acp_styles.php

#
#-----[ FIND ]------------------------------------------
#
		$user->add_lang('acp/styles'); 

#
#-----[ REPLACE WITH ]------------------------------------------
#
		$user->add_lang(array('acp/styles', 'mods/im'));

#
#-----[ FIND ]------------------------------------------
#
				'icon_back_top', 'icon_contact_aim', 'icon_contact_email', 'icon_contact_icq'
				
#
#-----[ IN-LINE FIND ]------------------------------------------
#
'icon_contact_icq'

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, 'icon_contact_gg', 'icon_contact_tlen', 'icon_contact_skype'

#
#-----[ OPEN ]------------------------------------------
#
includes/acp/acp_users.php

#
#-----[ FIND ]------------------------------------------
#
		$user->add_lang(array('posting', 'ucp', 'acp/users'));

#
#-----[ REPLACE WITH ]------------------------------------------
#
		$user->add_lang(array('posting', 'ucp', 'acp/users', 'mods/im'));
		
#
#-----[ FIND ]------------------------------------------
#
					'yim'			=> request_var('yim', $user_row['user_yim']),

#
#-----[ AFTER, ADD ]------------------------------------------
#
					'gg'			=> request_var('gg', $user_row['user_gg']),
					'tlen'			=> request_var('tlen', $user_row['user_tlen']),
					'skype'			=> request_var('skype', $user_row['user_skype']),

#
#-----[ FIND ]------------------------------------------
#
          $error = validate_data($data, array(
          
#
#-----[ BEFORE, ADD ]------------------------------------------
#
					$data['tlen'] = strtolower($data['tlen']);
					$find = array("@tlen.pl", "@o2.pl", "@go2.pl");
					$data['tlen'] = str_replace($find, "", $data['tlen']);

#
#-----[ FIND ]------------------------------------------
#
						'yim'			=> array('string', true, 5, 255),
						
#
#-----[ AFTER, ADD ]------------------------------------------
#
						'gg'			=> array(
							array('string', true, 1, 15),
							array('match', true, '#^[0-9]+$#i')),
						'tlen'			=> array('string', true, 3, 255),
						'skype'			=> array('string', true, 6, 255),

#
#-----[ FIND ]------------------------------------------
#
							'user_yim'		=> $data['yim'],
							
#
#-----[ AFTER, ADD ]------------------------------------------
#
							'user_gg'		=> $data['gg'],
							'user_tlen'		=> $data['tlen'],
							'user_skype'		=> $data['skype'],

#
#-----[ FIND ]------------------------------------------
#
					'JABBER'		=> $data['jabber'],
					
#
#-----[ AFTER, ADD ]------------------------------------------
#
					'GG'			=> $data['gg'],
					'TLEN'			=> $data['tlen'],
					'SKYPE'			=> $data['skype'],
					'ENABLE_ICQ'		=> $config['enable_icq'],
					'ENABLE_YIM'		=> $config['enable_yim'],
					'ENABLE_AIM'		=> $config['enable_aim'],
					'ENABLE_MSN'		=> $config['enable_msn'],
					'ENABLE_GG'		=> $config['enable_gg'],
					'ENABLE_TLEN'		=> $config['enable_tlen'],
					'ENABLE_SKYPE'		=> $config['enable_skype'],
					'ENABLE_JABBER'	=> $config['enable_jabber'],

#
#-----[ OPEN ]------------------------------------------
#
includes/ucp/ucp_pm_viewmessage.php

#
#-----[ FIND ]------------------------------------------
#
	$user->add_lang(array('viewtopic', 'memberlist')); 

#
#-----[ REPLACE WITH ]------------------------------------------
#
	$user->add_lang(array('viewtopic', 'memberlist', 'mods/im'));
	
#
#-----[ FIND ]------------------------------------------
#
		'MINI_POST_IMG'		=> $user->img('icon_post_target', $user->lang['PM']),

#
#-----[ AFTER, ADD ]------------------------------------------
#
		'ICQ_STATUS_IMG'			=> ($user_info['user_icq']) ? '<img src="http://web.icq.com/whitepages/online?icq=' . $user_info['user_icq'] . '&amp;img=5" width="18" height="18" alt="" style="position: relative; left: 1px; top: 1px;"/>' : '',
		'GG_STATUS_IMG'			=> ($user_info['user_gg']) ? '<img src="http://www.gadu-gadu.pl/users/status.asp?id=' . $user_info['user_gg'] . '&styl=1" width="14" height="14" alt="" style="position: relative; left: 3px; top: 3px;"/>' : '',
		'TLEN_STATUS_IMG'			=> ($user_info['user_tlen']) ? '<img src="http://status.tlen.pl/?u=' . $user_info['user_tlen'] . '&amp;t=1" border="0" width="18" height="18" alt="" style="position: relative; left: 1px; top: 1px;"/>' : '',
		'SKYPE_STATUS_IMG'			=> ($user_info['user_skype']) ? '<img src="http://mystatus.skype.com/smallicon/' . $user_info['user_skype'] . '" width="16" height="16" alt="" style="position: relative; left: 2px; top: 2px;"/>' : '',

#
#-----[ FIND ]------------------------------------------
#
		'U_ICQ'			=> ($user_info['user_icq']) ? 'http://www.icq.com/people/webmsg.php?to=' . urlencode($user_info['user_icq']) : '',
		'U_AIM'			=> ($user_info['user_aim'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=aim&amp;u=' . $author_id) : '',
		'U_YIM'			=> ($user_info['user_yim']) ? 'http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($user_info['user_yim']) . '&amp;.src=pg' : '',
		'U_MSN'			=> ($user_info['user_msnm'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=msnm&amp;u=' . $author_id) : '',
		'U_JABBER'		=> ($user_info['user_jabber'] && $auth->acl_get('u_sendim')) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=jabber&amp;u=' . $author_id) : '',
		
#
#-----[ REPLACE WITH ]------------------------------------------
#
		'U_ICQ'			=> ($user_info['user_icq'] && $config['enable_icq']) ? 'http://www.icq.com/people/webmsg.php?to=' . urlencode($user_info['user_icq']) : '',
		'U_AIM'			=> ($user_info['user_aim'] && $auth->acl_get('u_sendim') && $config['enable_aim']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=aim&amp;u=' . $author_id) : '',
		'U_YIM'			=> ($user_info['user_yim'] && $config['enable_yim']) ? 'http://edit.yahoo.com/config/send_webmesg?.target=' . urlencode($user_info['user_yim']) . '&amp;.src=pg' : '',
		'U_MSN'			=> ($user_info['user_msnm'] && $auth->acl_get('u_sendim') && $config['enable_msn']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=msnm&amp;u=' . $author_id) : '',
		'U_GG'			=> ($user_info['user_gg'] && $config['enable_gg']) ? 'gg:' . urlencode($user_info['user_gg']) : '',
		'U_TLEN'			=> ($user_info['user_tlen'] && $config['enable_tlen']) ? 'http://ludzie.tlen.pl/' . urlencode($user_info['user_tlen']) : '',
		'U_SKYPE'			=> ($user_info['user_skype'] && $auth->acl_get('u_sendim') && $config['enable_skype']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=skype&amp;u=' . $author_id) : '',
		'U_JABBER'		=> ($user_info['user_jabber'] && $auth->acl_get('u_sendim') && $config['enable_jabber']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=contact&amp;action=jabber&amp;u=' . $author_id) : '',

#
#-----[ OPEN ]------------------------------------------
#
includes/ucp/ucp_profile.php

#
#-----[ FIND ]------------------------------------------
#
		$user->add_lang('posting'); 

#
#-----[ REPLACE WITH ]------------------------------------------
#
		$user->add_lang(array('posting', 'mods/im'));
		
#
#-----[ FIND ]------------------------------------------
#
					'yim'			=> request_var('yim', $user->data['user_yim']),

#
#-----[ AFTER, ADD ]------------------------------------------
#
					'gg'			=> request_var('gg', $user->data['user_gg']),
					'tlen'			=> request_var('tlen', $user->data['user_tlen']),
					'skype'			=> request_var('skype', $user->data['user_skype']),

#
#-----[ FIND ]------------------------------------------
#
          $validate_array = array(
						'icq'			=> array(

#
#-----[ BEFORE, ADD ]------------------------------------------
#
					$data['tlen'] = strtolower($data['tlen']);
					$find = array("@tlen.pl", "@o2.pl", "@go2.pl");
					$data['tlen'] = str_replace($find, "", $data['tlen']);

#
#-----[ FIND ]------------------------------------------
#
						'yim'			=> array('string', true, 5, 255),
						
#
#-----[ AFTER, ADD ]------------------------------------------
#
						'gg'			=> array(
							array('string', true, 1, 15),
							array('match', true, '#^[0-9]+$#i')),
						'tlen'			=> array('string', true, 3, 255),
						'skype'			=> array('string', true, 6, 255),

#
#-----[ FIND ]------------------------------------------
#
							'user_yim'		=> $data['yim'],
							
#
#-----[ AFTER, ADD ]------------------------------------------
#
							'user_gg'		=> $data['gg'],
							'user_tlen'		=> $data['tlen'],
							'user_skype'		=> $data['skype'],

#
#-----[ FIND ]------------------------------------------
#
					'JABBER'	=> $data['jabber'],
					
#
#-----[ AFTER, ADD ]------------------------------------------
#
					'GG'		=> $data['gg'],
					'TLEN'		=> $data['tlen'],
					'SKYPE'		=> $data['skype'],
					'ENABLE_ICQ'		=> $config['enable_icq'],
					'ENABLE_YIM'		=> $config['enable_yim'],
					'ENABLE_AIM'		=> $config['enable_aim'],
					'ENABLE_MSN'		=> $config['enable_msn'],
					'ENABLE_GG'		=> $config['enable_gg'],
					'ENABLE_TLEN'		=> $config['enable_tlen'],
					'ENABLE_SKYPE'		=> $config['enable_skype'],
					'ENABLE_JABBER'	=> $config['enable_jabber'],


#
#-----[ OPEN ]------------------------------------------
#  
language/pl/acp/common.php

#
#-----[ FIND ]------------------------------------------
#
 'ACP_ICONS_SMILIES' =>

#
#-----[ AFTER, ADD ]------------------------------------------
#
 'ACP_IM_SETTINGS' => 'Ustawienia komunikatorów' ,

#
#-----[ FIND ]------------------------------------------
#
 'LOG_GROUP_UPDATED' =>

#
#-----[ AFTER, ADD ]------------------------------------------
#
 'LOG_IM_SETTINGS_CHANGED' => '<strong>Zmieniono ustawienia komunikatorów</strong>' ,

#
#-----[ OPEN ]------------------------------------------
#  
styles/prosilver/imageset/imageset.cfg

#
#-----[ FIND ]------------------------------------------
#
img_icon_contact_email = icon_contact_email.gif*20*20

#
#-----[ AFTER, ADD ]------------------------------------------
#
img_icon_contact_gg = icon_contact_gg.gif*20*20

#
#-----[ FIND ]------------------------------------------
#
img_icon_contact_msnm = icon_contact_msnm.gif*20*20

#
#-----[ AFTER, ADD ]------------------------------------------
#
img_icon_contact_skype = icon_contact_skype.gif*20*20
img_icon_contact_tlen = icon_contact_tlen.gif*20*20

#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/memberlist_im.html

#
#-----[ FIND ]------------------------------------------
#
			<dd><a href="http://www.aim.com/download.adp">{L_IM_DOWNLOAD_APP}</a> | <a href="http://aimexpress.oscar.aol.com/aimexpress/launch.adp?Brand=AIM">{L_IM_AIM_EXPRESS}</a></dd>
		</dl>
	<!-- ENDIF -->
	
#
#-----[ AFTER, ADD ]------------------------------------------
#
	<!-- IF S_SEND_SKYPE -->
		<dl class="fields2">
			<dt>&nbsp;</dt>
			<dd><a href="{U_SKYPE_CALL}">{L_IM_CALL}</a></dd>
			<dd><a href="{U_SKYPE_CONTACT}">{L_IM_ADD_CONTACT}</a></dd>
			<dd><a href="{U_SKYPE_MESSAGE}">{L_IM_SEND_MESSAGE}</a></dd>
			<dd><a href="http://www.skype.com/intl/pl/download/">{L_IM_DOWNLOAD_APP}</a></dd>
		</dl>
	<!-- ENDIF -->
	
#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/memberlist_search.html

#
#-----[ FIND ]------------------------------------------
#
	<dl>
		<dt><label for="icq">{L_ICQ}:</label></dt>
		<dd><input type="text" name="icq" id="icq" value="{ICQ}" class="inputbox" /></dd>
	</dl>
	<dl>
		<dt><label for="aim">{L_AIM}:</label></dt>
		<dd><input type="text" name="aim" id="aim" value="{AIM}" class="inputbox" /></dd>
	</dl>
	<dl>
		<dt><label for="yim">{L_YIM}:</label></dt>
		<dd><input type="text" name="yim" id="yim" value="{YIM}" class="inputbox" /></dd>
	</dl>
	<dl>
		<dt><label for="msn">{L_MSNM}:</label></dt>
		<dd><input type="text" name="msn" id="msn" value="{MSNM}" class="inputbox" /></dd>
	</dl>
		
#
#-----[ REPLACE WITH ]------------------------------------------
#
	<!-- IF ENABLE_GG -->
	<dl>
		<dt><label for="gg">{L_GG}:</label></dt>
		<dd><input type="text" name="gg" id="gg" value="{GG}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_TLEN -->  
	<dl>
		<dt><label for="tlen">{L_TLEN}:</label></dt>
		<dd><input type="text" name="tlen" id="tlen" value="{TLEN}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_SKYPE -->  
	<dl>
		<dt><label for="skype">{L_SKYPE}:</label></dt>
		<dd><input type="text" name="skype" id="skype" value="{SKYPE}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_ICQ -->
	<dl>
		<dt><label for="icq">{L_ICQ}:</label></dt>
		<dd><input type="text" name="icq" id="icq" value="{ICQ}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_AIM -->  
	<dl>
		<dt><label for="aim">{L_AIM}:</label></dt>
		<dd><input type="text" name="aim" id="aim" value="{AIM}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_YIM -->  
	<dl>
		<dt><label for="yim">{L_YIM}:</label></dt>
		<dd><input type="text" name="yim" id="yim" value="{YIM}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_MSN -->  
	<dl>
		<dt><label for="msn">{L_MSNM}:</label></dt>
		<dd><input type="text" name="msn" id="msn" value="{MSNM}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	
#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/memberlist_view.html

#
#-----[ FIND ]------------------------------------------
#
		<!-- IF U_MSN or USER_MSN --><dt>{L_MSNM}:</dt> <dd><!-- IF U_MSN --><a href="{U_MSN}" onclick="popup(this.href, 550, 320); return false;">{L_SEND_MSNM_MESSAGE}</a><!-- ELSE -->{USER_MSN}<!-- ENDIF --></dd><!-- ENDIF -->
    
#
#-----[ BEFORE, ADD ]------------------------------------------
#
		<!-- IF U_GG or USER_GG --><dt>{L_GG}:</dt> <dd><!-- IF U_GG --><a href="{U_GG}" >{GG_STATUS_IMG}{L_SEND_GG_MESSAGE}</a><!-- ELSE -->{USER_GG}<!-- ENDIF --></dd><!-- ENDIF -->
		<!-- IF U_TLEN or USER_TLEN --><dt>{L_TLEN}:</dt> <dd><!-- IF U_TLEN --><a href="{U_TLEN}" onclick="popup(this.href, 780, 550); return false;">{TLEN_STATUS_IMG}{L_SEND_TLEN_MESSAGE}</a><!-- ELSE -->{USER_TLEN}<!-- ENDIF --></dd><!-- ENDIF -->
		<!-- IF U_SKYPE or USER_SKYPE --><dt>{L_SKYPE}:</dt> <dd><!-- IF U_SKYPE --><a href="{U_SKYPE}" onclick="popup(this.href, 550, 320); return false;">{SKYPE_STATUS_IMG}{L_SEND_SKYPE_MESSAGE}</a><!-- ELSE -->{USER_SKYPE}<!-- ENDIF --></dd><!-- ENDIF -->

#
#-----[ FIND ]------------------------------------------
#
		<!-- IF U_ICQ or USER_ICQ --><dt>{L_ICQ}:</dt> <dd><!-- IF U_ICQ --><a href="{U_ICQ}" onclick="popup(this.href, 550, 320); return false;">{L_SEND_ICQ_MESSAGE}</a><!-- ELSE -->{USER_ICQ}<!-- ENDIF --></dd><!-- ENDIF -->
		
#
#-----[ REPLACE WITH ]------------------------------------------
#
		<!-- IF U_ICQ or USER_ICQ --><dt>{L_ICQ}:</dt> <dd><!-- IF U_ICQ --><a href="{U_ICQ}" onclick="popup(this.href, 550, 320); return false;">{ICQ_STATUS_IMG}{L_SEND_ICQ_MESSAGE}</a><!-- ELSE -->{USER_ICQ}<!-- ENDIF --></dd><!-- ENDIF -->

#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/ucp_pm_viewmessage.html

#
#-----[ FIND ]------------------------------------------
#
		<!-- IF U_PM or U_EMAIL or U_WWW or U_MSN or U_ICQ or U_YIM or U_AIM -->
		
#
#-----[ REPLACE WITH ]------------------------------------------
#
		<!-- IF U_PM or U_EMAIL or U_WWW or U_MSN or U_ICQ or U_YIM or U_AIM or U_GG or U_TLEN or U_SKYPE -->
#
#-----[ FIND ]------------------------------------------
#
			<!-- IF U_MSN --><li class="msnm-icon"><a href="{U_MSN}" title="{L_MSNM}"><span>{L_MSNM}</span></a></li><!-- ENDIF -->
			<!-- IF U_ICQ --><li class="icq-icon"><a href="{U_ICQ}" title="{L_ICQ}"><span>{L_ICQ}</span></a></li><!-- ENDIF -->
			<!-- IF U_YIM --><li class="yahoo-icon"><a href="{U_YIM}" title="{L_YIM}"><span>{L_YIM}</span></a></li><!-- ENDIF -->
			<!-- IF U_AIM --><li class="aim-icon"><a href="{U_AIM}" title="{L_AIM}"><span>{L_AIM}</span></a></li><!-- ENDIF -->

#
#-----[ REPLACE WITH ]------------------------------------------
#
			<!-- IF U_GG --><li class="gg-icon"><a href="{U_GG}" title="{L_GG}">{GG_STATUS_IMG}<span>{L_GG}</span></a></li><!-- ENDIF -->
			<!-- IF U_TLEN --><li class="tlen-icon"><a href="{U_TLEN}" onclick="popup(this.href, 550, 320); return false;" title="{L_TLEN}">{TLEN_STATUS_IMG}<span>{L_TLEN}</span></a></li><!-- ENDIF -->
			<!-- IF U_SKYPE --><li class="skype-icon"><a href="{U_SKYPE}" onclick="popup(this.href, 550, 320); return false;" title="{L_SKYPE}">{SKYPE_STATUS_IMG}<span>{L_SKYPE}</span></a></li><!-- ENDIF -->
			<!-- IF U_MSN --><li class="msnm-icon"><a href="{U_MSN}" onclick="popup(this.href, 550, 320); return false;" title="{L_MSNM}"><span>{L_MSNM}</span></a></li><!-- ENDIF -->
			<!-- IF U_ICQ --><li class="icq-icon"><a href="{U_ICQ}" onclick="popup(this.href, 550, 320); return false;" title="{L_ICQ}">{ICQ_STATUS_IMG}<span>{L_ICQ}</span></a></li><!-- ENDIF -->
			<!-- IF U_YIM --><li class="yahoo-icon"><a href="{U_YIM}" onclick="popup(this.href, 780, 550); return false;" title="{L_YIM}"><span>{L_YIM}</span></a></li><!-- ENDIF -->
			<!-- IF U_AIM --><li class="aim-icon"><a href="{U_AIM}" onclick="popup(this.href, 550, 320); return false;" title="{L_AIM}"><span>{L_AIM}</span></a></li><!-- ENDIF -->

#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/ucp_profile_profile_info.html

#
#-----[ FIND ]------------------------------------------
#
	<dl>
		<dt><label for="icq">{L_UCP_ICQ}:</label></dt>
		<dd><input type="text" name="icq" id="icq" maxlength="15" value="{ICQ}" class="inputbox" /></dd>
	</dl>
	<dl>
		<dt><label for="aim">{L_UCP_AIM}:</label></dt>
		<dd><input type="text" name="aim" id="aim" maxlength="255" value="{AIM}" class="inputbox" /></dd>
	</dl>
	<dl>
		<dt><label for="msn">{L_UCP_MSNM}:</label></dt>
		<dd><input type="text" name="msn" id="msn" maxlength="255" value="{MSN}" class="inputbox" /></dd>
	</dl>
	<dl>
		<dt><label for="yim">{L_UCP_YIM}:</label></dt>
		<dd><input type="text" name="yim" id="yim" maxlength="255" value="{YIM}" class="inputbox" /></dd>
	</dl>
	<dl>
		<dt><label for="jabber">{L_UCP_JABBER}:</label></dt>
		<dd><input type="text" name="jabber" id="jabber" maxlength="255" value="{JABBER}" class="inputbox" /></dd>
	</dl>

#
#-----[ REPLACE WITH ]------------------------------------------
#
	<!-- IF ENABLE_GG -->
	<dl>
		<dt><label for="gg">{L_UCP_GG}:</label></dt>
		<dd><input type="text" name="gg" id="gg" maxlength="15" value="{GG}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_TLEN -->  
	<dl>
		<dt><label for="tlen">{L_UCP_TLEN}:</label></dt>
		<dd><input type="text" name="tlen" id="tlen" maxlength="255" value="{TLEN}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_SKYPE -->  
	<dl>
		<dt><label for="skype">{L_UCP_SKYPE}:</label></dt>
		<dd><input type="text" name="skype" id="skype" maxlength="255" value="{SKYPE}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_ICQ -->
	<dl>
		<dt><label for="icq">{L_UCP_ICQ}:</label></dt>
		<dd><input type="text" name="icq" id="icq" maxlength="15" value="{ICQ}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_AIM -->  
	<dl>
		<dt><label for="aim">{L_UCP_AIM}:</label></dt>
		<dd><input type="text" name="aim" id="aim" maxlength="255" value="{AIM}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_MSN -->  
	<dl>
		<dt><label for="msn">{L_UCP_MSNM}:</label></dt>
		<dd><input type="text" name="msn" id="msn" maxlength="255" value="{MSN}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_YIM -->  
	<dl>
		<dt><label for="yim">{L_UCP_YIM}:</label></dt>
		<dd><input type="text" name="yim" id="yim" maxlength="255" value="{YIM}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	<!-- IF ENABLE_JABBER -->  
	<dl>
		<dt><label for="jabber">{L_UCP_JABBER}:</label></dt>
		<dd><input type="text" name="jabber" id="jabber" maxlength="255" value="{JABBER}" class="inputbox" /></dd>
	</dl>
	<!-- ENDIF -->
	
#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/template/viewtopic_body.html

#
#-----[ FIND ]------------------------------------------
#
		<!-- IF postrow.U_PM or postrow.U_EMAIL or postrow.U_WWW or postrow.U_MSN or postrow.U_ICQ or postrow.U_YIM or postrow.U_AIM -->
		
#
#-----[ REPLACE WITH ]------------------------------------------
#
		<!-- IF postrow.U_PM or postrow.U_EMAIL or postrow.U_WWW or postrow.U_MSN or postrow.U_ICQ or postrow.U_YIM or postrow.U_AIM or postrow.U_GG or postrow.U_TLEN or postrow.U_SKYPE -->

#
#-----[ FIND ]------------------------------------------
#
					<!-- IF postrow.U_MSN --><li class="msnm-icon"><a href="{postrow.U_MSN}" onclick="popup(this.href, 550, 320); return false;" title="{L_MSNM}"><span>{L_MSNM}</span></a></li><!-- ENDIF -->
					<!-- IF postrow.U_ICQ --><li class="icq-icon"><a href="{postrow.U_ICQ}" onclick="popup(this.href, 550, 320); return false;" title="{L_ICQ}"><span>{L_ICQ}</span></a></li><!-- ENDIF -->

#
#-----[ REPLACE WITH ]------------------------------------------
#
					<!-- IF postrow.U_GG --><li class="gg-icon"><a href="{postrow.U_GG}" title="{L_GG}">{postrow.GG_STATUS_IMG}<span>{L_GG}</span></a></li><!-- ENDIF -->
					<!-- IF postrow.U_TLEN --><li class="tlen-icon"><a href="{postrow.U_TLEN}" onclick="popup(this.href, 550, 320); return false;" title="{L_TLEN}">{postrow.TLEN_STATUS_IMG}<span>{L_TLEN}</span></a></li><!-- ENDIF -->
					<!-- IF postrow.U_SKYPE --><li class="skype-icon"><a href="{postrow.U_SKYPE}" onclick="popup(this.href, 550, 320); return false;" title="{L_SKYPE}">{postrow.SKYPE_STATUS_IMG}<span>{L_SKYPE}</span></a></li><!-- ENDIF -->
					<!-- IF postrow.U_MSN --><li class="msnm-icon"><a href="{postrow.U_MSN}" onclick="popup(this.href, 550, 320); return false;" title="{L_MSNM}"><span>{L_MSNM}</span></a></li><!-- ENDIF -->
					<!-- IF postrow.U_ICQ --><li class="icq-icon"><a href="{postrow.U_ICQ}" onclick="popup(this.href, 550, 320); return false;" title="{L_ICQ}">{postrow.ICQ_STATUS_IMG}<span>{L_ICQ}</span></a></li><!-- ENDIF -->

#
#-----[ OPEN ]------------------------------------------
#
styles/prosilver/theme/stylesheet.css

#
#-----[ FIND ]------------------------------------------
#
@import url("colours.css");

#
#-----[ AFTER, ADD ]------------------------------------------
#
@import url("im.css");

#
#-----[ DIY INSTRUCTIONS ]------------------------------------------
#
Teraz należy dodać moduł ustawień komunikatora do panelu administratora.
Przejdź do panelu administratora -> System -> Zarządzanie modułami -> System administracyjny. Następnie wybieramy Główna -> Komunikacja klienta. Tam wybieramy z jumpboxa moduł "Ustawienia komunikatorów". Następnie klikamy "Dodaj moduł" i zatwierdzamy. Przechodzimy do edycji nowego modułu i tam ustawiamy:
Moduł włączony: Tak
Wybierz moduł: Ustawienia komunikatorów [acp_im]
Resztę zostawiamy bez zmian i zatwierdzamy.
Teraz komunikatory możemy włączać/wyłączać w PA -> Główna -> Komunikacja klientów -> Ustawienia komunikatorów.
Wyczyść cache i odśwież wszystkie komponenty stylu: szablony, motywy i zestawy ikon.

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
